<{if $data}>
    <div style='margin-bottom:5px;'><input type='checkbox' name='apply-goods-all' value='true' onclick="isAll(this);" <{if $data.apply_goods == '_ALL_'}>checked<{/if}> >全部货品</div>
    <div <{if $data.apply_goods == '_ALL_' }>style="visibility:hidden;"<{/if}>>
        <{input type='inventorydepth_object' object='sales_material@material' multiple=true breakpoint='0' name='sm_id' textcol='material_name' value=$data.pgid callback='product_object_callback' replacehtml=$replacehtml emptytext='选取销售物料' style='float:left;width:200px;' filter="sales_material_type=1&is_bind=1&in_shop_id={$in_shop_id}" }>
        <{input type='inventorydepth_object' object='sales_material@material' multiple=true breakpoint='0'  name='pkg_id' textcol='material_name' value=$data.pkg_id callback='pkg_object_callback' replacehtml=$replacehtml_pkg emptytext='选取促销销售物料' filter="sales_material_type=2&is_bind=1&in_shop_id={$in_shop_id}" }>
    </div>
<{else}>
    <div style='margin-bottom:5px;'><input type='checkbox' name='apply-goods-all' value='true' onclick="isAll(this);" <{if $data.apply_goods == '_ALL_'}>checked<{/if}> >全部货品</div>
    <div <{if $data.apply_goods == '_ALL_' }>style="visibility:hidden;"<{/if}>>
        <{input type='inventorydepth_object' object='sales_material@material' multiple=true breakpoint='0' name='sm_id' textcol='material_name' value=$data.pgid callback='product_object_callback' replacehtml=$replacehtml emptytext='选取销售物料' style='float:left;width:200px;' filter="sales_material_type=1&is_bind=1&in_shop_id={$in_shop_id}" }>
        <{input type='inventorydepth_object' object='sales_material@material' multiple=true breakpoint='0'  name='pkg_id' textcol='material_name' value=$data.pkg_id callback='pkg_object_callback' replacehtml=$replacehtml_pkg emptytext='选取促销销售物料' filter="sales_material_type=2&is_bind=1&in_shop_id={$in_shop_id}" }>
    </div>
<{/if}>